#ifndef UI_SM700_MAIN_H
#define UI_SM700_MAIN_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QLineEdit>
#include <QtGui/QWidget>
#include <QtGui/QTextEdit>
#include <xinifile.h>
#include <tws_debugging.h>
#include <xqtsymbollabel.h>
#include "xdatabootconf.h"
#include "infomatcommon.h"

QT_BEGIN_NAMESPACE

class Ui_SM700
{
public:
    QLabel	  *tbNotice;
	QLabel    *tbInfonotes;
    QLineEdit *tbTare;
    QLineEdit *tbTareRight;
    QLineEdit *tbWeight;
	QLineEdit *tbWeightRight;
    QLineEdit *tbPrice;
    QLineEdit *tbPriceRight;
    QLineEdit *tbTotalPrice;
    QLineEdit *tbTotalPriceRight;
    QLineEdit *tbTareValue;
    
	QLineEdit *tbWeightValue;
    QLineEdit *tbPriceValue;
	QLineEdit *tbTotalPriceValue;
	XQtSymbolLabel *lbWeightWithSymbol;
	XQtSymbolLabel *lbUnitPriceWithSymbol;
    XQtSymbolLabel *lbTotalPriceWithSymbol;

	QLineEdit *tbManPrepack;
    QLineEdit *tbNetLamp;
    QLineEdit *tbMax;
    QLineEdit *tbMin;
    QLineEdit *tbIncrement;
    QLineEdit *tbTareLimit;
    QLabel	  *zeroImage;
	QLabel    *lbDigiLogo;
	QLabel    *lbUnitInfo;  // Max, Min, Increment, Limition
	QLabel*     m_lblogo;
	QLabel*     m_lbqno;


    void setupUi(QWidget *SM700)
    {
		XDataBootConf  xbootconf;
		STBootConf stBootConf = xbootconf.getBootConf();
		bool isQnoLogo;

		switch (stBootConf.layout)
		{
		case k_layout_8:
		case k_layout_9:
		case k_layout_10:
			isQnoLogo = true;
			break;
		default:
			isQnoLogo = false;
			break;
		}

        if (SM700->objectName().isEmpty())
            SM700->setObjectName(QString::fromUtf8("SM700"));
        SM700->setWindowModality(Qt::NonModal);
  
        QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(SM700->sizePolicy().hasHeightForWidth());
        SM700->setSizePolicy(sizePolicy);
        QPalette palette;
        QBrush brush(QColor(255, 255, 255, 255));
        brush.setStyle(Qt::SolidPattern);
        palette.setBrush(QPalette::Active, QPalette::Button, brush);
        QBrush brush1(QColor(0, 0, 0, 255));
        brush1.setStyle(Qt::SolidPattern);
        palette.setBrush(QPalette::Active, QPalette::Light, brush1);
        palette.setBrush(QPalette::Active, QPalette::Midlight, brush1);
        palette.setBrush(QPalette::Active, QPalette::Dark, brush1);
        palette.setBrush(QPalette::Active, QPalette::Mid, brush1);
        QBrush brush2(QColor(4, 4, 4, 255));
        brush2.setStyle(Qt::SolidPattern);
        palette.setBrush(QPalette::Active, QPalette::Text, brush2);
        palette.setBrush(QPalette::Active, QPalette::BrightText, brush);
        palette.setBrush(QPalette::Active, QPalette::ButtonText, brush);
        palette.setBrush(QPalette::Active, QPalette::Base, brush);
        palette.setBrush(QPalette::Active, QPalette::Window, brush1);
        palette.setBrush(QPalette::Active, QPalette::Shadow, brush1);
        palette.setBrush(QPalette::Active, QPalette::AlternateBase, brush1);
        QBrush brush3(QColor(255, 255, 220, 255));
        brush3.setStyle(Qt::SolidPattern);
        palette.setBrush(QPalette::Active, QPalette::ToolTipBase, brush3);
        palette.setBrush(QPalette::Active, QPalette::ToolTipText, brush1);
        palette.setBrush(QPalette::Inactive, QPalette::Button, brush);
        palette.setBrush(QPalette::Inactive, QPalette::Light, brush1);
        palette.setBrush(QPalette::Inactive, QPalette::Midlight, brush1);
        palette.setBrush(QPalette::Inactive, QPalette::Dark, brush1);
        palette.setBrush(QPalette::Inactive, QPalette::Mid, brush1);
        palette.setBrush(QPalette::Inactive, QPalette::Text, brush2);
        palette.setBrush(QPalette::Inactive, QPalette::BrightText, brush);
        palette.setBrush(QPalette::Inactive, QPalette::ButtonText, brush);
        palette.setBrush(QPalette::Inactive, QPalette::Base, brush);
        palette.setBrush(QPalette::Inactive, QPalette::Window, brush1);
        palette.setBrush(QPalette::Inactive, QPalette::Shadow, brush1);
        palette.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush1);
        palette.setBrush(QPalette::Inactive, QPalette::ToolTipBase, brush3);
        palette.setBrush(QPalette::Inactive, QPalette::ToolTipText, brush1);
        palette.setBrush(QPalette::Disabled, QPalette::Button, brush);
        palette.setBrush(QPalette::Disabled, QPalette::Light, brush1);
        palette.setBrush(QPalette::Disabled, QPalette::Midlight, brush1);
        palette.setBrush(QPalette::Disabled, QPalette::Dark, brush1);
        palette.setBrush(QPalette::Disabled, QPalette::Mid, brush1);
        palette.setBrush(QPalette::Disabled, QPalette::Text, brush1);
        palette.setBrush(QPalette::Disabled, QPalette::BrightText, brush);
        palette.setBrush(QPalette::Disabled, QPalette::ButtonText, brush1);
        palette.setBrush(QPalette::Disabled, QPalette::Base, brush1);
        palette.setBrush(QPalette::Disabled, QPalette::Window, brush1);
        palette.setBrush(QPalette::Disabled, QPalette::Shadow, brush1);
        palette.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush1);
        palette.setBrush(QPalette::Disabled, QPalette::ToolTipBase, brush3);
        palette.setBrush(QPalette::Disabled, QPalette::ToolTipText, brush1);
		SM700->setPalette(palette);
		QFont commodityFont;
		commodityFont.setFamily(stBootConf.nameFont.c_str());
		commodityFont.setPointSize(stBootConf.nameFontSize);
		
		QFont titleFont;    
        titleFont.setFamily(stBootConf.font.c_str());
        titleFont.setPointSize(stBootConf.fontSize);
        titleFont.setBold(true);
        titleFont.setWeight(75);
		
		QFont dataFont;
		dataFont.setFamily(stBootConf.wmFont.c_str());
        dataFont.setPointSize(stBootConf.wmFontSize);
        dataFont.setBold(false);
        dataFont.setItalic(false);
        dataFont.setWeight(50);
	
		// tbNotice
		tbNotice = new QLabel(SM700);
		tbNotice->setObjectName(QString::fromUtf8("tbNotice"));
		tbNotice->setGeometry(QRect(12, 5, 560, 50));
        tbNotice->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
		tbNotice->setFrameStyle(QFrame::NoFrame);
		tbNotice->setFont(commodityFont);
		QPalette p2 = tbNotice->palette();
		p2.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		tbNotice->setPalette(p2);	

		//tbInfonotes  : discount info
		tbInfonotes = new QLabel(SM700);
        tbInfonotes->setObjectName(QString::fromUtf8("tbInfonotes"));
//      tbInfonotes->setGeometry(QRect(573, 5, 225, 50));
//      tbInfonotes->setFont(titleFont);
		QFont discountFont;    
        discountFont.setFamily(stBootConf.discountFontFamily.c_str());
        discountFont.setPointSize(stBootConf.discountFontSize);
        discountFont.setBold(true);
        discountFont.setWeight(75);
      	tbInfonotes->setFont(discountFont);  
		tbInfonotes->setGeometry(QRect(stBootConf.discountStartX, stBootConf.discountStartY, stBootConf.discountWidth,stBootConf.discountHeigh));
		QPalette p19 = tbInfonotes->palette();
		p19.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p19.setColor(QPalette::Text, Qt::red); // r,g,b,A
		tbInfonotes->setPalette(p19);
		tbInfonotes->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
		tbInfonotes->setWordWrap(true);
		tbInfonotes->setPaletteForegroundColor(Qt::red);
        
		//tbTare
        tbTare = new QLineEdit(SM700);
        tbTare->setObjectName(QString::fromUtf8("tbTare"));
        tbTare->setFont(titleFont);
        tbTare->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
		QPalette p1 = tbTare->palette();
		p1.setColor(QPalette::Base, QColor(0, 0, 0, 0)); 
		p1.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		tbTare->setPalette(p1);
		tbTare->setFrame(false);
		tbTare->setReadOnly(true);

		//tbTareRight
		tbTareRight = new QLineEdit(SM700);
        tbTareRight->setObjectName(QString::fromUtf8("tbTareRight"));
        tbTareRight->setFont(titleFont);
        tbTareRight->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
       	QPalette p9 = tbTareRight->palette();
		p9.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p9.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		tbTareRight->setPalette(p9);
		tbTareRight->setFrame(false);
		tbTareRight->setReadOnly(true);

		//tbWeight
		tbWeight = new QLineEdit(SM700);
        tbWeight->setObjectName(QString::fromUtf8("tbWeight"));
        tbWeight->setFont(titleFont);
		QPalette p3 = tbWeight->palette();
		p3.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p3.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		tbWeight->setPalette(p3);
		tbWeight->setFrame(false);
		tbWeight->setReadOnly(true);
	
		//tbWeightRight
        tbWeightRight = new QLineEdit(SM700);
        tbWeightRight->setObjectName(QString::fromUtf8("tbWeightRight"));
        tbWeightRight->setFont(titleFont);
        tbWeightRight->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
		QPalette p10 = tbWeightRight->palette();
		p10.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p10.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		tbWeightRight->setPalette(p10);
		tbWeightRight->setFrame(false);
		tbWeightRight->setReadOnly(true);

		//tbPrice
		tbPrice = new QLineEdit(SM700);
        tbPrice->setObjectName(QString::fromUtf8("tbPrice"));
        tbPrice->setFont(titleFont);
		QPalette p4 = tbPrice->palette();
		p4.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p4.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		tbPrice->setPalette(p4);
		tbPrice->setFrame(false);
		tbPrice->setReadOnly(true);
        
		//tbPriceRight
		tbPriceRight = new QLineEdit(SM700);
        tbPriceRight->setObjectName(QString::fromUtf8("tbPriceRight"));
        tbPriceRight->setFont(titleFont);
        tbPriceRight->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
		QPalette p11 = tbPriceRight->palette();
		p11.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p11.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		tbPriceRight->setPalette(p11);
		tbPriceRight->setFrame(false);
		tbPriceRight->setReadOnly(true);

		//tbTotalPrice
		tbTotalPrice = new QLineEdit(SM700);
        tbTotalPrice->setObjectName(QString::fromUtf8("tbTotalPrice"));
        tbTotalPrice->setFont(titleFont);
		QPalette p5 = tbTotalPrice->palette();
		p5.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p5.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		tbTotalPrice->setPalette(p5);
		tbTotalPrice->setFrame(false);
		tbTotalPrice->setReadOnly(true);

		//tbTotalPriceRight
		tbTotalPriceRight = new QLineEdit(SM700);
        tbTotalPriceRight->setObjectName(QString::fromUtf8("tbTotalPriceRight"));
        tbTotalPriceRight->setFont(titleFont);
        tbTotalPriceRight->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
		QPalette p12 = tbTotalPriceRight->palette();
		p12.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p12.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		tbTotalPriceRight->setPalette(p12);
		tbTotalPriceRight->setFrame(false);
		tbTotalPriceRight->setReadOnly(true);
	
		//tare value
		tbTareValue = new QLineEdit(SM700);
        tbTareValue->setObjectName(QString::fromUtf8("tbTareValue"));
        QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Preferred);
        sizePolicy1.setHorizontalStretch(0);
        sizePolicy1.setVerticalStretch(0);
        sizePolicy1.setHeightForWidth(tbTareValue->sizePolicy().hasHeightForWidth());
        tbTareValue->setSizePolicy(sizePolicy1);
		QPalette p = tbTareValue->palette();
		p.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		tbTareValue->setPalette(p);
		tbTareValue->setFrame(false);
		tbTareValue->setReadOnly(true);
        tbTareValue->setFont(dataFont);
        tbTareValue->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
       
		//tbWeightValue
		tbWeightValue = new QLineEdit(SM700);
		tbWeightValue->setObjectName(QString::fromUtf8("tbWeightValue"));
        tbWeightValue->setFont(dataFont);
        tbWeightValue->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
		QPalette p6 = tbWeightValue->palette();
		p6.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p6.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		tbWeightValue->setPalette(p6);
		tbWeightValue->setFrame(false);    
		tbWeightValue->setReadOnly(true);  

		//tbPriceValue
		tbPriceValue = new QLineEdit(SM700);
		tbPriceValue->setObjectName(QString::fromUtf8("tbPriceValue"));
        tbPriceValue->setFont(dataFont);
        tbPriceValue->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
        QPalette p7 = tbPriceValue->palette();
		p7.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p7.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		tbPriceValue->setPalette(p7);
		tbPriceValue->setFrame(false);      
		tbPriceValue->setReadOnly(true);    

		//tbTotalPriceValue
		tbTotalPriceValue = new QLineEdit (SM700);
		tbTotalPriceValue->setObjectName(QString::fromUtf8("tbTotalPriceValue"));
        tbTotalPriceValue->setFont(dataFont);
        tbTotalPriceValue->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
		QPalette p8 = tbTotalPriceValue->palette();
		p8.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p8.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		tbTotalPriceValue->setPalette(p8);
		tbTotalPriceValue->setFrame(false);    
		tbTotalPriceValue->setReadOnly(true); 

		/* SYMBOL TEXT */
        QPalette palSymbolLabel;
		palSymbolLabel.setColor (QPalette::WindowText, QColor(255,255,255));
		QFont fontSymbolLabel;
		fontSymbolLabel.setFamily(stBootConf.wmFont.c_str());
		fontSymbolLabel.setPixelSize(36);    //TODO:Text Font from boot.conf
		QFont fontText;
		fontText.setFamily(stBootConf.wmFont.c_str());
		fontText.setPixelSize(stBootConf.wmFontSize);
		
		lbWeightWithSymbol = new XQtSymbolLabel(SM700);
		lbWeightWithSymbol->setSymbolFont(fontSymbolLabel);
		lbWeightWithSymbol->setPalette(palSymbolLabel);
		lbWeightWithSymbol->setFont(fontText);
		lbWeightWithSymbol->setAlignment(Qt::AlignVCenter | Qt::AlignRight);
		
		lbUnitPriceWithSymbol = new XQtSymbolLabel(SM700);
		lbUnitPriceWithSymbol->setSymbolFont(fontSymbolLabel);
		lbUnitPriceWithSymbol->setPalette(palSymbolLabel);
		lbUnitPriceWithSymbol->setFont(fontText);
		lbUnitPriceWithSymbol->setAlignment(Qt::AlignVCenter | Qt::AlignRight);
		
		lbTotalPriceWithSymbol = new XQtSymbolLabel(SM700);
		lbTotalPriceWithSymbol->setSymbolFont(fontSymbolLabel);
		lbTotalPriceWithSymbol->setPalette(palSymbolLabel);
		lbTotalPriceWithSymbol->setFont(fontText);
		lbTotalPriceWithSymbol->setAlignment(Qt::AlignVCenter | Qt::AlignRight);
		
		// Man Prepack
		tbManPrepack = new QLineEdit(SM700);
        tbManPrepack->setObjectName(QString::fromUtf8("tbManPrepack"));
        tbManPrepack->setGeometry(QRect(10, 142, 110, 18));   // man prepack
        tbManPrepack->setFont(titleFont);
		QPalette p13 = tbManPrepack->palette();
		p13.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p13.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		tbManPrepack->setPalette(p13);
		tbManPrepack->setFrame(false);
		tbManPrepack->setReadOnly(true); 

		//Net Lamp
		tbNetLamp = new QLineEdit(SM700);
        tbNetLamp->setObjectName(QString::fromUtf8("tbNetLamp"));
        tbNetLamp->setGeometry(QRect(230, 142, 110, 18));
        tbNetLamp->setFont(titleFont);
		QPalette p14 = tbNetLamp->palette();
		p14.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p14.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		tbNetLamp->setPalette(p14);
		tbNetLamp->setFrame(false);
		tbNetLamp->setReadOnly(true);

		tbMax = new QLineEdit(SM700);
        tbMax->setObjectName(QString::fromUtf8("tbMax"));
        tbMax->setGeometry(QRect(365, 142, 435, 18));
        tbMax->setFont(titleFont);
		tbMax->setAlignment(Qt::AlignLeft);
		QPalette p15 = tbMax->palette();
		p15.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p15.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		tbMax->setPalette(p15);
		tbMax->setFrame(false);
		tbMax->setReadOnly(true);

		//Min
		tbMin = new QLineEdit(SM700);
        tbMin->setObjectName(QString::fromUtf8("tbMin"));
        tbMin->setGeometry(QRect(448, 142, 110, 18));
        tbMin->setFont(titleFont);
       	QPalette p16 = tbMin->palette();
		p16.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p16.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		tbMin->setPalette(p16);
		tbMin->setFrame(false);
		tbMin->setReadOnly(true); 

		//Increment
		tbIncrement = new QLineEdit(SM700);
        tbIncrement->setObjectName(QString::fromUtf8("tbIncrement"));
        tbIncrement->setGeometry(QRect(548, 142, 150, 18));
        tbIncrement->setFont(titleFont);
		QPalette p17 = tbIncrement->palette();
		p17.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p17.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		tbIncrement->setPalette(p17);
		tbIncrement->setFrame(false);
		tbIncrement->setReadOnly(true);

		//TareLimit
		tbTareLimit = new QLineEdit(SM700);
        tbTareLimit->setObjectName(QString::fromUtf8("tbTareLimit"));
        tbTareLimit->setGeometry(QRect(710, 142, 190, 18));
        tbTareLimit->setFont(titleFont);
		QPalette p18 = tbTareLimit->palette();
		p18.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p18.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		tbTareLimit->setPalette(p18);
		tbTareLimit->setFrame(false);
		tbTareLimit->setReadOnly(true);

		lbUnitInfo = new QLabel(SM700);
        lbUnitInfo->setObjectName(QString::fromUtf8("lbUnitInfo"));
        lbUnitInfo->setGeometry(QRect(368, 142, 440, 18));
        lbUnitInfo->setFont(titleFont);
		QPalette p20 = lbUnitInfo->palette();
		p20.setColor(QPalette::Base, QColor(0, 0, 0, 0)); // r,g,b,A
		p20.setColor(QPalette::Text, QColor(255, 255, 255, 255));
		lbUnitInfo->setPalette(p20);
		lbUnitInfo->setAlignment(Qt::AlignLeft);	

		QPixmap pixImg("zero2.bmp");
		zeroImage = new QLabel(SM700);
        zeroImage->setObjectName(QString::fromUtf8("zeroImage"));
        zeroImage->setGeometry(QRect(180, 142, 110, 18));
		zeroImage->setPixmap(pixImg);	

		if (isQnoLogo)
		{
			lbDigiLogo = new QLabel(SM700);	
			QFont qfont;
			m_lblogo = new QLabel(SM700);
			qfont.setFamily(stBootConf.font.c_str());
			qfont.setPointSize(65);
			qfont.setBold(true);
			qfont.setWeight(75);
		
			m_lbqno  = new QLabel(SM700);
			m_lbqno->setAlignment(Qt::AlignCenter);
			m_lbqno->setGeometry(QRect(0,65,120,85));
			m_lbqno->setFont(qfont);
			m_lbqno->setPaletteForegroundColor(Qt::white);
	
			SM700->resize(800,165);
			SM700->setMinimumSize(QSize(800, 165));
			SM700->setMaximumSize(QSize(800, 165));
			
			QPixmap digiImg("images/digiLogo.png");
			lbDigiLogo->setPixmap(digiImg);
			lbDigiLogo->setGeometry(QRect(0,55,120,85));

			tbTare->setGeometry(QRect(130, 58, 110, 19));
			tbTareRight->setGeometry(QRect(195, 58, 41, 19));
			tbWeight->setGeometry(QRect(250, 58, 110, 19));
			tbWeightRight->setGeometry(QRect(325, 58, 56, 19));
			tbPrice->setGeometry(QRect(400,58,150,19));
			tbPriceRight->setGeometry(QRect(540, 58, 78, 19));
			tbTotalPrice->setGeometry(QRect(640, 58, 150, 19));
			tbTotalPriceRight->setGeometry(QRect(710, 58, 78, 19));
		  
			tbTareValue->setGeometry(QRect(130, 83, 110, 55));
			tbWeightValue->setGeometry(QRect(200, 83, 185, 55));
			tbPriceValue->setGeometry(QRect(400, 83, 220, 55));
			tbTotalPriceValue->setGeometry(QRect(610, 83, 178, 55));
			
			lbWeightWithSymbol->setGeometry(QRect(200, 83, 185, 55));
			lbUnitPriceWithSymbol->setGeometry(QRect(400, 83, 220, 55));
			lbTotalPriceWithSymbol->setGeometry(QRect(610, 83, 178, 55));
		
			QPalette bgPalette;
			bgPalette.setBrush(SM700->backgroundRole(), QBrush(QImage("images/qnowm_bg.bmp")));
			SM700->setPalette(bgPalette);
		}
		else
		{
			SM700->resize(800, 165);
			SM700->setMinimumSize(QSize(800, 165));
			SM700->setMaximumSize(QSize(800, 165));

			tbTare->setGeometry(QRect(27, 58, 70, 19));
			tbTareRight->setGeometry(QRect(100, 58, 41, 19));
			tbWeight->setGeometry(QRect(160, 58, 110, 19));
			tbWeightRight->setGeometry(QRect(270, 58, 56, 19));
			tbPrice->setGeometry(QRect(340, 58, 150, 19));
			tbPriceRight->setGeometry(QRect(490, 58, 68, 19));
			tbTotalPrice->setGeometry(QRect(584, 58, 150, 19));
			tbTotalPriceRight->setGeometry(QRect(700, 58, 68, 19));
		  
			tbTareValue->setGeometry(QRect(25, 83, 125, 55));
			tbWeightValue->setGeometry(QRect(160, 83, 165, 55));
			tbPriceValue->setGeometry(QRect(345, 83, 220, 55));
			tbTotalPriceValue->setGeometry(QRect(595, 83, 178, 55));
			
			lbWeightWithSymbol->setGeometry(QRect(160, 83, 165, 55));
			lbUnitPriceWithSymbol->setGeometry(QRect(345, 83, 220, 55));
			lbTotalPriceWithSymbol->setGeometry(QRect(595, 83, 178, 55));
			QPalette bgPalette;
			bgPalette.setBrush(SM700->backgroundRole(), QBrush(QImage("images/background.bmp")));
			SM700->setPalette(bgPalette);
		}
        retranslateUi(SM700);
        QMetaObject::connectSlotsByName(SM700);
   
	} // setupUi

    void retranslateUi(QWidget *SM700)
    {
        SM700->setWindowTitle(QApplication::translate("SM700", "sm700", 0, QApplication::UnicodeUTF8));
        tbNotice->setText(QString());
        tbInfonotes->setText(QString());
        tbTare->setText(QString());
        tbTareRight->setText(QString());
        tbWeight->setText(QString());
        tbWeightRight->setText(QString());
        tbPrice->setText(QString());
        tbPriceRight->setText(QString());
        tbTotalPrice->setText(QString());
        tbTotalPriceRight->setText(QString());
        tbTareValue->setText(QString());
        tbWeightValue->setText(QString());
        tbPriceValue->setText(QString());
        tbTotalPriceValue->setText(QString());
        tbManPrepack->setText(QString());
        tbNetLamp->setText(QString());
        tbMax->setText(QString());
        tbMin->setText(QString());
        tbIncrement->setText(QString());
        tbTareLimit->setText(QString());
    } // retranslateUi

};

namespace Ui {
    class SM700: public Ui_SM700 {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_SM700_MAIN_H
